package com.zhentao.constants;

import com.zhentao.user.domain.AppUser;
import com.zhentao.user.domain.AppUserInfo;

public class UserThreadLocal {
    private final static ThreadLocal<AppUser> USER_INFO=new ThreadLocal<>();

    public static void setUserInfo(AppUser userInfo){
        USER_INFO.set(userInfo);
    }
    public static AppUser getUserInfo(){
        return USER_INFO.get();
    }
    public static void removeUserInfo(){
        USER_INFO.remove();
    }

}
